<!-- Block login and register module -->
<script type="text/javascript">
    var bl_ajax_login = '{$bl_ajax_login}';
	var success = '{l s='Success!' mod='blockloginregister'}';
    var email = '{l s='Email address is required' mod='blockloginregister'}';
    var password = '{l s='Password is required' mod='blockloginregister'}';
    var available = '{l s='Email is available. Please fill the information at the following form...' mod='blockloginregister'}';
</script>
<div id="loginPanel">
	<ul class="bullet">
		<li><a class="inline" href="#loginBox-content" id="loginBox">{l s='Login' mod='blockloginregister'}</a></li>
        <li><a class="inline" href="#registerBox-content" id="registerBox">{l s='Register' mod='blockloginregister'}</a></li>
	</ul>
</div>
    <div style="display:none">
	  <div id="loginBox-content">
	    <div id="loadingL" style="display:none"></div>
        <div id="statusMsgL" class="errorMsg" style="display:none"></div>
          <form id="loginform"  method="post" onsubmit="return loginCheck('{$module_dir}', '{$cookie->id_lang}')" action="{$link->getPageLink('authentication.php', true)}">
          	<input type="hidden" name="actionlogin" id="actionlogin" value="login" />
            <label> {l s='Email' mod='blockloginregister'}:</label><br/>
            <input type="text" id="email_ajax" name="email_ajax" value="{if isset($smarty.post.email)}{$smarty.post.email|escape:'htmlall'|stripslashes}{/if}" class="Ninput" />
            <label>{l s='Password' mod='blockloginregister'}:</label><br/>
            <input type="password" id="passwd_ajax" name="passwd_ajax" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|escape:'htmlall'|stripslashes}{/if}" class="Ninput" />
            {if isset($back)}<input type="hidden" class="hidden" name="back_ajax" id="backurl_ajax" value="{$back|escape:'htmlall':'UTF-8'}" />{/if}
            <p><a href="{$link->getPageLink('password.php', true)}">{l s='Forgot password?' mod='blockloginregister'}</a></p>
			<p><input type="submit" value="{l s='Log in' mod='blockloginregister'}" class="button" name="SubmitLogin_ajax" id="SubmitLogin_ajax" /></p>
          </form>
      </div>
	</div>
	<div style="display:none">
      <div id="registerBox-content">
		<div id="loadingR" style="display:none"></div>
        <div id="statusMsgR" class="errorMsg" style="display:none"></div>
	    <p id="infoText">{l s='Enter your e-mail address to create your account' mod='blockloginregister'}.</p>
          <form id="registercheck" method="post" onsubmit="return registerCheck('{$module_dir}', '{$cookie->id_lang}')" action="{$link->getPageLink('authentication.php', true)}">
			<input type="text" id="email_create_ajax" name="email_create" value="{if isset($smarty.post.email_create)}{$smarty.post.email_create|escape:'htmlall':'UTF-8'|stripslashes}{/if}" class="Ninput" />
			<p><input type="submit" value="{l s='Register' mod='blockloginregister'}" class="button" name="btnRegister_ajax" id="btnRegister_ajax" /></p>
            <input type="hidden" class="hidden" name="create_account" value="1" />
            <input type="hidden" class="hidden" name="SubmitCreate" value="{l s='Create your account'}" />
          </form>
      </div>
	</div>

<script type="text/javascript">
{literal}
    $(document).ready(function() {
        $('.inline').fancybox({
		    'transitionIn'		: 'elastic',
			'transitionOut'		: 'elastic'
    });
});
{/literal}
</script>
<!-- /Block login and register module -->
